{% extends "base.html" %}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
{% block title %}Pizza system - Entrar{% endblock%}

{% block body_navegacao %}
{% if not user.is_authenticated %}
<p>Não possui cadastro? <a href="{% url cadastro %}">Clique aqui!</a></p>
<form class="well form-inline" method="post" action="{% url login %}">
    {% csrf_token %}
    <input id="id_username" name="username" type="text" class="input-small" placeholder="CPF">
    <input id="id_password" name="password" type="password" class="input-small" placeholder="Senha">
    <button type="submit" class="btn">Entrar</button>
</form>
{% else %}
<p>Você está logado, <a href="{% url index %}">clique aqui</a> para voltar.</p>
{% endif %}
{% endblock %}
